﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using Newtonsoft.Json;

namespace Smugmug
{
    [JsonObject]
    public class Product : IIdentifiable<int>
    {
        [XmlAttribute("id"), JsonProperty("id")]
        public int Id { get; set; }
        [XmlAttribute]
        public string Name { get; set; }
        [XmlAttribute]
        public string Type { get; set; }
        [XmlAttribute]
        public float Wholesale { get; set; }
        [XmlAttribute]
        public float Retail { get; set; }
        [XmlAttribute]
        public float Profit { get; set; }
    }

    [XmlType("Products"), JsonObject]
    public class ProductCollection : List<Product>
    {
    }
}